package com.kayt.cyberBar.cuser.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.common.ServerResponse;
import com.kayt.cyberBar.cuser.business.entity.req.vo.AssessReqVO;
import com.kayt.cyberBar.cuser.business.entity.rsp.vo.AssessRspVO;
import com.kayt.cyberBar.cuser.business.entity.rsp.vo.SaleDetailRspVO;
import com.kayt.cyberBar.cuser.business.server.IUserAssessServer;
import com.kayt.cyberBar.cuser.business.service.IAssessService;

@Service("assessService")
public class AssessServiceImpl implements IAssessService{
	@Autowired
	private IUserAssessServer assessServer;
	@Override
	public ServerResponse<PageData<AssessRspVO>> getUserMonthAssessByStoreCode(AssessReqVO reqVo) {
		return assessServer.assembleResulAssessStoreRspVO(assessServer.getUserMonthAssessByStoreCode(reqVo));
	}

	@Override
	public ServerResponse<PageData<AssessRspVO>> getUserDetailAccessByStoreCode(AssessReqVO reqVo) {
		return assessServer.assembleResulAssessStoreRspVO(assessServer.getUserDetailAccessByStoreCode(reqVo));
	}

	@Override
	public ServerResponse<PageData<AssessRspVO>> getUserAssessDetailByUserCode(AssessReqVO reqVo) {
		return assessServer.assembleResulAssessStoreRspVO(assessServer.getUserADByUserCode(reqVo));
	}

	@Override
	public ServerResponse<PageData<SaleDetailRspVO>> getUserSaleDetail(AssessReqVO reqVo) {
		return assessServer.assembleResulSaleDetailRspVO(assessServer.getUserDetailSell(reqVo));
	}

}
